#include "StdAfx.h"
#include "StaffItem.h"



CStaffItem::CStaffItem(void)
:identifier(_T("")), nm(_T("")), ages(_T("")), slr(_T("")), pt(_T(""))
{
	
}

CStaffItem::CStaffItem(CString id, CString name, CString age, CString salary, CString part)
	:identifier(id), nm(name), ages(age), slr(salary), pt(part)
{
}

CStaffItem::CStaffItem(const CStaffItem &item)
{
	identifier  = item.identifier;
	nm			= item.nm;
	ages		= item.ages;
	slr			= item.slr;
	pt			= item.pt;
}

CStaffItem &CStaffItem::operator =(const CStaffItem &item)
{
	identifier  = item.identifier;
	nm			= item.nm;
	ages		= item.ages;
	slr			= item.slr;
	pt			= item.pt;
	
	return *this;
}

CStaffItem::~CStaffItem(void)
{
}

CString CStaffItem::GetItemId()
{
	return identifier;
}

void CStaffItem::SetItemId(CString i)
{
	identifier = i;
}

void CStaffItem::SetItemName(CString nam)
{
	 nm= nam;
}
CString CStaffItem::GetItemName()
{
	return nm;
}
CString CStaffItem::GetItemAge()
{
	return ages;
}

void CStaffItem::SetItemAge(CString a)
{
	ages = a;
}

CString CStaffItem::GetItemSalary()
{
	return slr;
}

void CStaffItem::SetItemSalary(CString sl)
{
	slr = sl;
}

CString CStaffItem::GetItemPart()
{
	return pt;
}

void CStaffItem::SetItemPart(CString p)
{
	pt = p;
}